package scau.erps.view.decision.finance;

import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public abstract class SandPanelTemplateOfFinance extends JPanel {
	private static final long serialVersionUID = 1L;
	protected JLabel label2,label3,label4,label5,label6;
	protected JTextField cash,textField2,textField3,textField4,textField5,textField6;
	public SandPanelTemplateOfFinance(){		
		JPanel panel = new JPanel();
		panel.setPreferredSize(new Dimension(680,40));		
		panel.setLayout(new GridLayout(1,4,3,3));
		JLabel label1 = new JLabel("现金:");
		label1.setHorizontalAlignment(JLabel.RIGHT);
		cash = new JTextField();
		cash.setEditable(false);		
		label2 = new JLabel();
		label2.setHorizontalAlignment(JLabel.RIGHT);
		label2.setVisible(false);
		textField2 = new JTextField();
		textField2.setEditable(false);
		textField2.setVisible(false);
		label3 = new JLabel();
		label3.setHorizontalAlignment(JLabel.RIGHT);
		label3.setVisible(false);
		textField3 = new JTextField();
		textField3.setEditable(false);
		textField3.setVisible(false);
		label4 = new JLabel();
		label4.setHorizontalAlignment(JLabel.RIGHT);
		label4.setVisible(false);
		textField4 = new JTextField();
		textField4.setEditable(false);
		textField4.setVisible(false);
		label5 = new JLabel();
		label5.setHorizontalAlignment(JLabel.RIGHT);
		label5.setVisible(false);
		textField5 = new JTextField();
		textField5.setEditable(false);
		textField5.setVisible(false);
		label6 = new JLabel();
		label6.setHorizontalAlignment(JLabel.RIGHT);
		label6.setVisible(false);
		textField6 = new JTextField();
		textField6.setEditable(false);
		textField6.setVisible(false);
		panel.add(label1);
		panel.add(cash);
		panel.add(label2);
		panel.add(textField2);
		panel.add(label3);
		panel.add(textField3);
		panel.add(label4);
		panel.add(textField4);
		panel.add(label5);
		panel.add(textField5);
		panel.add(label6);
		panel.add(textField6);
		this.setLayout(new FlowLayout(FlowLayout.LEFT));
		this.add(panel);	
	}
	public abstract void setTextFieldValue();
}
